home *** CD-ROM | disk | FTP | other *** search
/ LOGIC Apps / Logic-APPLE_II_APPS.iso / mac / LOGIC Apple II 5.25" Library - ProDOS / PRO079B.dsk / IIC / IIC.02.GRAPHICS.txt < prev    next >
Text File  |  2012-02-16  |  4KB  |  69 lines

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple IIc
  8. #2:    40-Column and Double High-Resolution Graphics
  9.  
  10. Revised by:    Matt Deatherage                                  November 1988
  11. Revised by:    Cameron Birse                                    February 1986
  12.  
  13. This Technical Note describes how to properly handle the 40-column screen 
  14. while using double high-resolution graphics on the Apple IIc.
  15. _____________________________________________________________________________
  16.  
  17. Many developers using double high-resolution  graphics may wish to use 40-
  18. column text displays so that the text can be read on a television set.  There 
  19. are a couple of possibilities for accomplishing this task:
  20.  
  21. 1.    You can define your own double high-resolution character set with 
  22.       any size characters you desire, then plot them on the double high-
  23.       resolution screen.
  24. 2.    You can print text to the Apple IIc text screen and toggle the 
  25.       screen on to display it.
  26.  
  27. Note:    There is no way to display 4 lines of 40-column text at the 
  28. bottom of the double high-resolution screen in mixed mode since 
  29. the 80 column hardware must be active while double high-resolution 
  30. mode is being used.
  31.  
  32. Using the second method outlined above requires some special considerations.
  33.  
  34. The Apple IIc scroll routine continues to use the window parameters when 
  35. scrolling, but uses the 80COL softswitch to determine if it should scroll the 
  36. 80-column screen or 40-column screen.  Since the firmware has initialized a 
  37. 40-column window, the scroll routines will move only the first 40 columns, but 
  38. the 80COL flag has been turned on for double high-resolution.  Because of the 
  39. 80COL flag, the scroll routine takes every even column from auxiliary memory 
  40. and every odd column from main memory.  As a result, only the first 40 columns 
  41. get scrolled, 20 columns from auxiliary memory and 20 columns from main 
  42. memory.
  43.  
  44. One solution to the problem is writing your own scroll routines, while another 
  45. is writing to the screen so scrolling is not necessary.  There is, however, 
  46. another solution.  Turn on the full 80-column mode with PR#3 or equivalent.  
  47. Now print your text to COUT in the normal manner, and do not exceed 40 
  48. characters per line--the 80-column firmware should scroll everything properly.  
  49. When you are ready to display text, send a Control-Q sequence through COUT to 
  50. toggle to 40-columns and send a Control-R sequence to return to double high-
  51. resolution mode.  These control characters toggle the display modes, but leave 
  52. the 80-column firmware active.
  53.  
  54. When switching between modes, you may experience a momentary glitch.  If you 
  55. send the Control-Q sequence to COUT while still in graphics mode, the screen 
  56. will first switch to the normal high-resolution mode before finally switching 
  57. to text mode.  If you switch to text mode first, the text will be in 80-column 
  58. mode (with 40 columns displayed on the left of the screen) before ultimately 
  59. switching to 40-column mode).  This same potential glitch may occur when 
  60. switching back to double high-resolution mode, and it may be only momentary 
  61. and not present any problems for your application.  If, however, it does 
  62. present a problem, you may wish to make your switch coincide with the video's 
  63. vertical blanking interval (see the Apple IIc Technical Reference Manual).
  64.  
  65.  
  66. Further Reference
  67. o    Apple IIc Technical Reference Manual
  68.  
  69.